﻿/*
App to log students attendance
*/
var app = angular.module('studentLog', ['ngRoute', 'firebase']);
//
app.config(function ($routeProvider) {
    $routeProvider.when('/', {
        controller: 'HomeController',
        templateUrl: 'app/views/home.html',
        title: 'Home Page'
    }).when('/about', {
        controller: 'AboutController',
        templateUrl: 'app/views/about.html',
        title: 'About Page'
    })
        .when('/user/:id', {
            controller: 'UserController',
            templateUrl: 'app/views/user.html'
        })

        .otherwise({
        redirectTo: '/'
    });

});